]> dgit.raspbian.org Git - gnome-shell.git/commit
windowManager: Use MetaWindowActor.paint_to_content() for window effects
authorRobert Mader <robert.mader@posteo.de>
Sun, 6 Jun 2021 12:29:47 +0000 (14:29 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 4 Sep 2021 10:08:10 +0000 (10:08 +0000)
commit36a1fb78cddf4be8b26430ff3ab998600356f075
tree924b075861fbc1417f03267900849a7851639f14
parent46f2c29acc3e9949fd5f1862d91e904ffd1224fc
windowManager: Use MetaWindowActor.paint_to_content() for window effects

Previously we used `get_image()`, which returned `cairo_surface`,
in order to create a `ClutterContent` with a screenshot of the
`MetaWindowActor`. This added a roundtrip from GPU to CPU memory.

Instead, use the new `paint_to_content()` API which lets us use a
`CoglTexture` directly as source of our `ClutterContent`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1879>
js/ui/windowManager.js